#ifndef _DEV_RAWDEV_H_
#define _DEV_RAWDEV_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <types.h>
#include "device.h"

struct raw_dev_cfg
{
    int fd;
};

struct raw_device
{
    struct device       dev;
    struct raw_dev_cfg  cfg;
};

int raw_dev_add(const char *name, const struct raw_dev_cfg *cfg);
void raw_dev_del(device_t *dev);

#ifdef __cplusplus
}
#endif
#endif
